{template 'common/header'}
{template 'common'}
<div class="main">
	<ul class="nav nav-tabs">
		<li{if $_GPC['do'] == 'manage'} class="active"{/if}><a href="{php echo $this->createWebUrl('manage');}">活动管理</a></li>
		<li{if $_GPC['do'] == 'post'} class="active"{/if}><a href="{php echo create_url('rule/post',array('module'=>'ewei_bonus'));}">添加活动规则</a></li>
		<li{if $_GPC['do'] == 'fanslist'} class="active"{/if}><a href="{php echo $this->createWebUrl('fanslist',array('rid' => $rid));}">参与用户</a></li>
                                <li{if $_GPC['do'] == 'recordlist'} class="active"{/if}><a href="{php echo $this->createWebUrl('recordlist',array('rid' => $rid));}">提现申请</a></li>
	</ul>
	
	   <div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
        	<input type="hidden" name="m" value="ewei_bonus" />
        	<input type="hidden" name="do" value="fanslist" />
        	<input type="hidden" name="rid" value="{$_GPC['rid']}" />
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
				<div class="col-sm-8 col-lg-9">
					<input class="form-control" name="keywords" id="" type="text" value="{$_GPC['keywords']}" placeholder="可查询手机号"> 
				</div>
                          
			</div>
				<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">状态</label>
				<div class="col-sm-8 col-lg-9">
					<select name="status" class="form-control" style="float:left">
                                        <option value="" {if $_GPC['status']==''}selected{/if}>全部</option>
                                        <option value="0" {if $_GPC['status']=='0'}selected{/if}>未提现</option>
                                        <option value="1" {if $_GPC['status']=='1'}selected{/if}>已提现</option>
                                    </select>
				</div>
                                <div class=" col-xs-12 col-sm-2 col-lg-2">
					<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
				</div>
			</div>
			
 			<div class="form-group">
			</div>
		</form>
	</div>
	
	 
		<div style="padding: 0 15px 0  15px;">
		  <div class="row-fluid">
                                <div class="span8 control-group">
                                    <a class="btn btn-default" href="{php echo $this->createWebUrl('download',array('rid'=>$rid))}"><i class="icon-download-alt"></i>导出用户信息</a>
                                    <a class="btn btn-default" href="{php echo $this->createWebUrl('fanslist',array('rid'=>$rid))}">全部</a>
                                    <a class="btn btn-default" href="{php echo $this->createWebUrl('fanslist',array('rid'=>$rid,'status'=>0))}">未提现</a>
                                    <a class="btn btn-default" href="{php echo $this->createWebUrl('fanslist',array('rid'=>$rid,'status'=>1))}">已提现</a>
                                </div>
                            </div>

		</div>
	<div style="padding: 0 15px 0  15px;" style="position:relative">
		<table class="table table-hover" style="position:relative">
			<thead class="navbar-inner">
				<tr><th>序号</th>
				<th>头像</th>
                                                <th>用户名</th>
                                                <th>地区</th>
                                                <th>初始金额</th>
                                                <th>合体金额</th>
                                                <th>提现金额</th>
                                                <th>红包金额</th>
                                                <th>合体次数</th>
                                                <th>参与时间</th>
                                                <th>状态</th>
		</tr>
			</thead>
			<tbody>
				{loop $list $row}
				<tr>
				<td>{$row['id']}</td>
				 <td><img width="25px" class="img-rounded" alt="" src="{$row['headurl']}"></td>
                                 <td>{$row['nickname']}</td>
				<td>{$row['area']}</td>
                                                                <td>{php echo number_format($row['points_start'],2)}</td>
                                                                <td>{php echo number_format($row['points_help'],2)}</td>
                                                                <td>{php echo number_format($row['points_withdraw'],2)}</td>
                                                                <td>{php echo number_format($row['points_total'],2)}</td>
                                                                <td>{php echo number_format($row['helps'],0)}</td>
                                                <td>{php echo date('Y/m/d H:i',$row['createtime']);}</td>
                                                     <td>{if $row['status']==1}
                                                    <span class="label label-success">已提现</span>
                                                    {else}
                                                    <span class="label label-default">未提现</span>
                                                    {/if}
                                                </td>
				</tr>
				{/loop}
				
			</tbody>
		</table>
		{$pager}
	</div>
	
</div>
<script>

function drop_confirm(msg, url){
    if(confirm(msg)){
        window.location = url;
    }
}
 
</script>
{template 'common/footer'}